<?php

namespace Illuminate\Contracts\Auth;

interface SupportsBasicAuth
{
    /**
     * 尝试使用 HTTP 基本验证进行身份验证
     *
     * @param  string $field
     * @param  array $extraConditions
     * @return \Symfony\Component\HttpFoundation\Response|null
     */
    public function basic($field = 'email', $extraConditions = []);

    /**
     * 执行无状态的 HTTP 基本验证登录尝试
     *
     * @param  string $field
     * @param  array $extraConditions
     * @return \Symfony\Component\HttpFoundation\Response|null
     */
    public function onceBasic($field = 'email', $extraConditions = []);
}
